<img src='partials/TestDataBar_1_Simple.PNG' style='width:400px;float:right'>
<div>
<pre>
<span class='code_snippet' style='font-size: 11px'>

XYBarDataSeries barSeries = new XYBarDataSeries();
barSeries.add(new DataPointBar("Apple", 98, Color.ORANGE));
barSeries.add(new DataPointBar("Banana", 44, Color.GRAY));
barSeries.add(new DataPointBar("Barley", 40, Color.DARK_GRAY));
barSeries.add(new DataPointBar("Rice", 3, Color.BLUE));
barSeries.add(new DataPointBar("Wheat", 50, Color.RED));
barSeries.add(new DataPointBar("Oranges", 30, Color.BLACK));
barSeries.add(new DataPointBar("Corn", 54, Color.CYAN));

XYChart chart = new XYChart("Simple Bar Chart", "Commodity", "Price (USD)", barSeries);

//		chart.topOffset = 5;
//		chart.bottomOffset = 5;

</span></pre></div>